import 'package:flutter/material.dart';

class Counter with ChangeNotifier {
  int value = 0;

  increment(){
    value++;
    notifyListeners();//通知听众值改变了 刷新组件
  }
}